<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>快来后台管理系统</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	
	<jsp:include page="../baidumap.html"></jsp:include>
	<link href="/QuickLifeServer/css/prevview.css" rel="stylesheet"/>
	<link href="/QuickLifeServer/css/businfo.css" rel="stylesheet"/>
	<link href="/QuickLifeServer/ExtJS/resources/css/ext-all.css" rel="stylesheet"/>
	
  </head>
  
  <body>
  	<div id="infos_content">
  	<form id="infos_form" enctype="multipart/form-data">
	  	<div id="logo_content">
		  	<img id="bus_logo" alt="Logo" src="${sessionScope.logo}" onClick="change_logo()"/>
	  	</div>
	  	<div id="logo_select_content" title="最佳图片宽高比例为1：1">
	  		<input class="input_view" type="file" name="logo" id="logo_select" onchange="prev_logo()"/>
		  	<img class="bigPrevView" id="bigPrevView" src="${logo}"/>
		  	<img class="middlePrevView" id="middlePrevView" src="${logo}"/>
		  	<img class="smallPrevView" id="smallPrevView" src="${logo}"/>
	  	</div>
	  	<table id="base_info_content">
	  		<tr>
	  			<td>
	  				商户名：
	  			</td>
	  			<td>
	  				<input class="input_view" id="name" name="name" value="${name}"/>
	  			</td>
	  		</tr>
	  		<tr>
	  			<td>
	  				地&nbsp;&nbsp;址：
	  			</td>
	  			<td>
	  				<input class="input_view" id="address" name="address" onClick="location_address()" readonly="readonly"/>
	  			</td>
	  		</tr>
	  		<tr>
	  			<td>
	  				类&nbsp;&nbsp;型：
	  			</td>
	  			<td>
	  				<select class="input_view" name="type" id="type" ></select>
	  			</td>
	  		</tr>
	  		<tr>
	  			<td>
	  				分&nbsp;&nbsp;数：
	  			</td>
	  			<td>
	  				<input class="input_view" id="score" readonly="readonly" onfocus="blur()"/>
	  			</td>
	  		</tr>
	  		<tr>
	  			<td>
	  				电&nbsp;&nbsp;话：
	  			</td>
	  			<td>
	  				<input class="input_view" name="phone" id="phone"/>
	  			</td>
	  		</tr>
	  	</table>
	<input id="lat" type="hidden" name="lat" />
	<input id="lon" type="hidden" name="lon"/>
  	<input id="userid" type="hidden" name="id" value="${sessionScope.id}"/>
	</form>
  	</div>
  	<br/>
  	<br/>
  	<br/>
  	<div id="button_content">
  		<button class="button" onClick="setInfo()">取消修改</button>
	  	<button class="button" onClick="uploadForm()">确认修改</button>
  	</div>
  	<div id="explain">
  		<p>1、点击图片修改店铺的LOGO</p>
  		<p>2、点击商户名、地址、类型、电话可进行相应的信息修改</p>
  		<p>3、如需修改密码，请点击菜单栏的“修改密码”</p>
  	</div>
  	<div id="fail_dialog">
  		<span id="fail_info"></span>
  	</div>
  	<div id="map_dialog">
		<label class="input_label" for="address">地址：</label>
		<input class="input_view" id="address_find" name="address" type="text"/>
		<button class="button" onClick="findAddress()">定位</button>
		<div id="map"></div>
  	</div>
  	
  	<jsp:include page="../head.html"></jsp:include>
  	<script src="/QuickLifeServer/ExtJS/ext-all.js"></script>
	<script src="/QuickLifeServer/js/businfo.js"></script>
  </body>
</html>
